package com.wwz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 房产信息
 * @date 2022/03/24 26:02:48
 */
@Data
@ApiModel("房产信息")
@TableName("house")
@EqualsAndHashCode(callSuper = false)
public class House implements Serializable {

    @TableId(type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String id;


    @ApiModelProperty("业务id")
    private String dataId;


    @ApiModelProperty("房产地址")
    private String houseAddress;


    @ApiModelProperty("成交价")
    private String price;


    @ApiModelProperty("产权")
    private String propertyRight;


    @ApiModelProperty("所属人")
    private String master;

    @ApiModelProperty("文件信息")
    @TableField(exist = false)
    private FileInfo fileInfo;


    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime;


    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("成交日期")
    private Date fixtureTime;

}
